package com.ferry.protocol;

/**
 * Created by daiyong
 * 返回值
 */
public enum StatusCode {

	OK									    ((byte) 0x01, "OK"),
	SERVER_ERROR							((byte) 0x02, "SERVER_ERROR"),
	SERVICE_NOT_FOUND						((byte) 0x03, "SERVICE_NOT_FOUND"),
	CLIENT_ERROR						    ((byte) 0x04, "CLIENT_ERROR"),
	DESERIALIZATION_FAIL					((byte) 0x05, "DESERIALIZATION_FAIL");


	private byte code;
	private String msg;

	StatusCode(byte code, String msg) {
		this.code = code;
		this.msg = msg;
	}


	public byte getCode() {
		return code;
	}

	public void setCode(byte code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
